package com.bnlr.lrparking.appui.bank;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.bnlr.lrparking.R;
import com.bnlr.lrparking.base.BaseActivity;
import com.bnlr.lrparking.event.AddBankCardSucceeEvent;
import com.bnlr.lrparking.constant.Params;

import org.greenrobot.eventbus.EventBus;

/**
 * Created by hp on 2017/8/21.
 */

public class AddBankCardSucceedActivity extends BaseActivity {

    private RelativeLayout rela_accomplish;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_addbankcardsuccess);
        initView();
    }

    private void initView(){
        rela_accomplish=(RelativeLayout)findViewById(R.id.rela_accomplish);
        rela_accomplish.setOnClickListener(this);


    }

    @Override
    public void onClick(View v) {
        super.onClick(v);
        switch (v.getId()){
            case R.id.rela_accomplish:
                if (Params.selectBank.equals("1")) {
                    Params.selectBank = "2";
                }
                EventBus.getDefault().post(new AddBankCardSucceeEvent());
                finish();
                break;
        }
    }

    @Override
    public void onBackPressed() {

    }
}
